# Maintainer: JackNapier <jacknapier151@gmail.com>
# Contributor: 

###########
# Godot 3 #
###########
pkgname=(
	"godot3-stable-src"
	##################
	# Godot GDScript #
	##################
	"godot3-stable-bin"
	"godot3-stable-bin32"
	"godot3-stable-export-templates-bin"
	"libgodot3-stable-bin"
	"godot3-stable-web-bin"
	"godot3-stable-headless-bin"
	"godot3-stable-server-bin"
	"godot3-stable-osx-bin"
	"godot3-stable-win32-bin"
	"godot3-stable-win64-bin"
	"godot3-stable-android-bin"
	##############
	# Godot Mono #
	##############
	"godot3-stable-mono-bin"
	"godot3-stable-mono-bin32"
	"godot3-stable-mono-export-templates-bin"
	"libgodot3-stable-mono-bin"
	"godot3-stable-headless-mono-bin"
	"godot3-stable-server-mono-bin"
	"godot3-stable-mono-osx-bin"
	"godot3-stable-mono-win32-bin"
	"godot3-stable-mono-win64-bin"
	)
pkgver="3.5.3"
pkgrel=1
pkgdesc="Godot3 Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."
url="http://www.godotengine.org"
license=("MIT")
groups=(
	"godot-full"
	"godot3"
	"godot35"
	"godot353"
	"godot-legazy"
	"godot-bin"
	"godot-stable"
)
arch=("any")
_monodepends=(
	"mono>=6.12.0"
	"dotnet-sdk"
	"msbuild"
)
depends=(
	"godot-base"
	"alsa-lib"
	"freetype2"
	"glu"
	"libxcursor"
	"libxinerama"
	"mesa"
)

source=("https://downloads.tuxfamily.org/godotengine/${pkgver}/godot-${pkgver}-stable.tar.xz")
sha512sums=("SKIP")
package_godot3-stable-src(){
	pkgdesc+=" Stable SourceCode"
	groups+=(
		"godot-src"
	)
	install -d "${pkgdir}/opt/godot/src/godot3-stable/"
	cp -r "${srcdir}/godot-${pkgver}-stable/"* "${pkgdir}/opt/godot/src/godot3-stable/"
}

##################
# Godot GDScript #
##################

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_x11.64.zip")
sha512sums+=("SKIP")
package_godot3-stable-bin(){
	pkgdesc+=" Stable Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-standard"
		"godot-standard64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.64" "${pkgdir}/opt/godot/godot3-stable-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot-stable-bin" "${pkgdir}/usr/bin/godot3-stable-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot3 Engine Stable Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_x11.32.zip")
sha512sums+=("SKIP")
package_godot3-stable-bin32(){
	pkgdesc+=" Stable Binary Version 32b"
	groups+=(
		"godot-gdscript"
		"godot-standard"
		"godot-standard32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.32" "${pkgdir}/opt/godot/godot3-stable-bin32"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot3-stable-bin32" "${pkgdir}/usr/bin/godot3-stable-bin32"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-bin32.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot3 Engine Stable Binary v${pkgver} 32b
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Binary Version 32b"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-bin32 %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_export_templates.tpz")
noextract=("Godot_v${pkgver}-stable_export_templates.tpz")
sha512sums+=("SKIP")
package_godot3-stable-export-templates-bin(){
	pkgdesc+=" Stable Export Templates Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-export-templates"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_export_templates.tpz" "${pkgdir}/opt/godot/godot3-stable-export-templates-bin.tpz"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/godot-lib.${pkgver}.stable.release.aar")
noextract+=("godot-lib.${pkgver}.stable.release.aar")
sha512sums+=("SKIP")
package_libgodot3-stable-bin(){
	pkgdesc+=" Stable LibGodot Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-lib"
	)
	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodot3-stable-bin.aar"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_web_editor.zip")
noextract+=("Godot_v${pkgver}-stable_web_editor.zip")
sha512sums+=("SKIP")
package_godot3-stable-web-bin(){
	pkgdesc+=" Stable Web Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-web"
	)
	unzip "Godot_v${pkgver}-stable_web_editor.zip" -d "${srcdir}/godot3-stable-web-bin.d"
	install -d "${pkgdir}/opt/godot/"
	cp -r "${srcdir}/godot3-stable-web-bin.d" "${pkgdir}/opt/godot/"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_linux_headless.64.zip")
sha512sums+=("SKIP")
package_godot3-stable-headless-bin(){
	pkgdesc+=" Stable Headless Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-headless"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_headless.64" "${pkgdir}/opt/godot/godot3-stable-headless-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot3-stable-headless-bin" "${pkgdir}/usr/bin/godot3-stable-headless-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-headless-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot3 Headless Engine Stable Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Headless Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-headless-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_linux_server.64.zip")
sha512sums+=("SKIP")
package_godot3-stable-server-bin(){
	pkgdesc+=" Stable Server Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-server"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_server.64" "${pkgdir}/opt/godot/godot3-stable-server-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot3-stable-server-bin" "${pkgdir}/usr/bin/godot3-stable-server-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-server-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot3 Server Engine Stable Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Server Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-server-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_osx.universal.zip")
sha512sums+=("SKIP")
package_godot3-stable-osx-bin(){
	pkgdesc+=" Stable MacOSX Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-osx"
		"godot-osx-universal"
	)
	install -Dm755 "${srcdir}/Godot.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godot3-stable-osx-bin"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_win32.exe.zip")
sha512sums+=("SKIP")
package_godot3-stable-win32-bin(){
	pkgdesc+=" Stable Windows Binary Version 32b"
	groups+=(
		"godot-gdscript"
		"godot-win"
		"godot-win32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32.exe" "${pkgdir}/opt/godot/godot3-stable-win32-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32_console.cmd" "${pkgdir}/opt/godot/godot3-stable-win32-bin.cmd"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_win64.exe.zip")
sha512sums+=("SKIP")
package_godot3-stable-win64-bin(){
	pkgdesc+=" Stable Windows Binary Version 64b"
	groups+=(
		"godot-gdscript"
		"godot-win"
		"godot-win64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64.exe" "${pkgdir}/opt/godot/godot3-stable-win64-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64_console.cmd" "${pkgdir}/opt/godot/godot3-stable-win64-bin.cmd"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/Godot_v${pkgver}-stable_android_editor.apk")
noextract+=("Godot_v${pkgver}-stable_android_editor.apk")
sha512sums+=("SKIP")
package_godot3-stable-android-bin(){
	pkgdesc+=" Stable Android Binary Version"
	groups+=(
		"godot-gdscript"
		"godot-android"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_android_editor.apk" "${pkgdir}/opt/godot/godot3-stable-android-bin.apk"
}

##############
# Godot Mono #
##############
source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_x11_64.zip")
sha512sums+=("SKIP")
package_godot3-stable-mono-bin(){
	pkgdesc+=" Stable Mono Binary Version"
	depends+=("${_monodepends}")
	groups+=(
		"godot-mono"
		"godot-standard"
		"godot-standard64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/Godot_v${pkgver}-stable_mono_x11.64" "${pkgdir}/opt/godot/godot3-stable-mono-bin.d/godot3-stable-mono-bin"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/GodotSharp" "${pkgdir}/opt/godot/godot3-stable-mono-bin.d/GodotSharp"
	ln -s "/opt/godot/godot3-stable-mono-bin.d/godot3-stable-mono-bin" "${pkgdir}/opt/godot/godot3-stable-mono-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot3-stable-mono-bin.d/godot3-stable-mono-bin" "${pkgdir}/usr/bin/godot3-stable-mono-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-mono-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot3 Engine Stable Mono Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Mono Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-mono-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_x11_32.zip")
sha512sums+=("SKIP")
package_godot3-stable-mono-bin32(){
	pkgdesc+=" Stable Mono Binary Version 32b"
	depends+=("${_monodepends}")
	groups+=(
		"godot-mono"
		"godot-standard"
		"godot-standard32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/Godot_v${pkgver}-stable_mono_x11.32" "${pkgdir}/opt/godot/godot3-stable-mono-bin32.d/godot3-stable-mono-bin32"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/GodotSharp" "${pkgdir}/opt/godot/godot3-stable-mono-bin32.d/GodotSharp"
	ln -s "/opt/godot/godot3-stable-mono-bin32.d/godot3-stable-mono-bin32" "${pkgdir}/opt/godot/godot3-stable-mono-bin32"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot3-stable-mono-bin32.d/godot3-stable-mono-bin32" "${pkgdir}/usr/bin/godot3-stable-mono-bin32"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-mono-bin32.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot3 Engine Stable Mono Binary v${pkgver} 32b
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Mono Binary Version 32b"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-mono-bin32 %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_export_templates.tpz")
noextract+=("Godot_v${pkgver}-stable_mono_export_templates.tpz")
sha512sums+=("SKIP")
package_godot3-stable-mono-export-templates-bin(){
	pkgdesc+=" Stable Export Templates Mono Binary Version"
	groups+=(
		"godot-mono"
		"godot-export-templates"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_export_templates.tpz" "${pkgdir}/opt/godot/Godot3-stable-mono-export-templates-bin.tpz"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/godot-lib.${pkgver}.stable.mono.release.aar")
noextract+=("godot-lib.${pkgver}.stable.mono.release.aar")
sha512sums+=("SKIP")
package_libgodot3-stable-mono-bin(){
	pkgdesc+=" Stable LibGodot Mono Binary Version"
	groups+=(
		"godot-mono"
		"godot-lib"
	)
	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.mono.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodot3-stable-mono-bin.aar"
}


source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_linux_headless_64.zip")
sha512sums+=("SKIP")
package_godot3-stable-headless-mono-bin(){
	pkgdesc+=" Stable Headless Mono Binary Version"
	depends+=("${_monodepends}")
	groups+=(
		"godot-mono"
		"godot-headless"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/Godot_v${pkgver}-stable_mono_linux_headless.64" "${pkgdir}/opt/godot/godot3-stable-headless-mono-bin.d/godot3-stable-headless-mono-bin"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/GodotSharp" "${pkgdir}/opt/godot/godot3-stable-headless-mono-bin.d/GodotSharp"
	ln -s "/opt/godot/godot3-stable-headless-mono-bin.d/godot3-stable-headless-mono-bin" "${pkgdir}/opt/godot/godot3-stable-headless-mono-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot3-stable-headless-mono-bin.d/godot3-stable-headless-mono-bin" "${pkgdir}/usr/bin/godot3-stable-headless-mono-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-headless-mono-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot Headless Engine Stable Mono Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Headless Mono Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-headless-mono-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_linux_server_64.zip")
sha512sums+=("SKIP")
package_godot3-stable-server-mono-bin(){
	pkgdesc+=" Stable Server Mono Binary Version"
	depends+=("${_monodepends}")
	groups+=(
		"godot-mono"
		"godot-server"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/Godot_v${pkgver}-stable_mono_linux_server.64" "${pkgdir}/opt/godot/godot3-stable-server-mono-bin.d/godot3-stable-server-mono-bin"
	install -d "${pkgdir}/opt/godot/godot3-stable-server-mono-bin.d/GodotSharp"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/data_Godot_v${pkgver}-stable_mono_linux_server_64" "${pkgdir}/opt/godot/godot3-stable-server-mono-bin.d/GodotSharp"
	ln -s "/opt/godot/godot3-stable-server-mono-bin.d/godot3-stable-server-mono-bin" "${pkgdir}/opt/godot/godot3-stable-server-mono-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godot3-stable-server-mono-bin.d/godot3-stable-server-mono-bin" "${pkgdir}/usr/bin/godot3-stable-server-mono-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godot3-stable-server-mono-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot Server Engine Stable Mono Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. Stable Server Mono Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godot3-stable-server-mono-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_osx.universal.zip")
sha512sums+=("SKIP")
package_godot3-stable-mono-osx-bin(){
	pkgdesc+=" Stable MacOSX Mono Binary Version"
	groups+=(
		"godot-mono"
		"godot-osx"
		"godot-osx-universal"
	)
	install -Dm755 "${srcdir}/Godot_mono.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godot3-stable-mono-osx-bin.d/godot3-stable-mono-osx-bin"
	cp -r "${srcdir}/Godot_mono.app/Contents/Resources/GodotSharp" "${pkgdir}/opt/godot/godot3-stable-mono-osx-bin.d/GodotSharp"
	ln -s "/opt/godot/godot3-stable-mono-osx-bin.d/godot3-stable-mono-osx-bin" "${pkgdir}/opt/godot/godot3-stable-mono-osx-bin"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_win32.zip")
sha512sums+=("SKIP")
package_godot3-stable-mono-win32-bin(){
	pkgdesc+=" Stable Windows Mono Binary Version 32b"
	groups+=(
		"godot-mono"
		"godot-win"
		"godot-win32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32.exe" "${pkgdir}/opt/godot/godot3-stable-win32-bin.d/godot3-stable-win32-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32_console.cmd" "${pkgdir}/opt/godot/godot3-stable-win32-bin.d/godot3-stable-win32-bin.cmd"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win32/GodotSharp" "${pkgdir}/opt/godot/godot3-stable-win32-bin.d/GodotSharp"
	ln -s "/opt/godot/godot3-stable-win32-bin.d/godot3-stable-mono-win32-bin.exe" "${pkgdir}/opt/godot/godot3-stable-mono-win32-bin.exe"
	ln -s "/opt/godot/godot3-stable-win32-bin.d/godot3-stable-mono-win32-bin.cmd" "${pkgdir}/opt/godot/godot3-stable-mono-win32-bin.cmd"
}

source+=("https://downloads.tuxfamily.org/godotengine/${pkgver}/mono/Godot_v${pkgver}-stable_mono_win64.zip")
sha512sums+=("SKIP")
package_godot3-stable-mono-win64-bin(){
	pkgdesc+=" Stable Windows Mono Binary Version 64b"
	groups+=(
		"godot-mono"
		"godot-win"
		"godot-win64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64.exe" "${pkgdir}/opt/godot/godot3-stable-win64-bin.d/godot3-stable-mono-win64-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64.cmd" "${pkgdir}/opt/godot/godot3-stable-win64-bin.d/godot3-stable-mono-win64-bin.cmd"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win64/GodotSharp" "${pkgdir}/opt/godot/godot3-stable-win64-bin.d/GodotSharp"
	ln -s "/opt/godot/godot3-stable-win64-bin.d/godot3-stable-mono-win64-bin.exe" "${pkgdir}/opt/godot/godot3-stable-mono-win64-bin.exe"
	ln -s "/opt/godot/godot3-stable-win64-bin.d/godot3-stable-mono-win64-bin.cmd" "${pkgdir}/opt/godot/godot3-stable-mono-win64-bin.cmd"
}


#############
# Godot LTS #
#############

pkgname+=(
	"godotlts-stable-src"
	##################
	# Godot GDScript #
	##################
	"godotlts-stable-bin"
	"godotlts-stable-bin32"
	"godotlts-stable-export-templates-bin"
	"libgodotlts-stable-bin"
	"godotlts-stable-web-bin"
	"godotlts-stable-headless-bin"
	"godotlts-stable-server-bin"
	"godotlts-stable-osx-bin"
	"godotlts-stable-win32-bin"
	"godotlts-stable-win64-bin"
	"godotlts-stable-android-bin"
	##############
	# Godot Mono #
	##############
	"godotlts-stable-mono-bin"
	"godotlts-stable-mono-bin32"
	"godotlts-stable-mono-export-templates-bin"
	"libgodotlts-stable-mono-bin"
	"godotlts-stable-headless-mono-bin"
	"godotlts-stable-server-mono-bin"
	"godotlts-stable-mono-osx-bin"
	"godotlts-stable-mono-win32-bin"
	"godotlts-stable-mono-win64-bin"
	)

pkgdesclts="Godot LTS Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."

package_godotlts-stable-src(){
	pkgdesc="${pkgdesclts} LTS Stable SourceCode"
	groups+=(
		"godot-lts"
		"godot-src"
	)
	install -d "${pkgdir}/opt/godot/src/godotlts-stable/"
	cp -r "${srcdir}/godot-${pkgver}-stable/"* "${pkgdir}/opt/godot/src/godotlts-stable/"
}

##################
# Godot GDScript #
##################

package_godotlts-stable-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-standard"
		"godot-standard64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.64" "${pkgdir}/opt/godot/godotlts-stable-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-bin" "${pkgdir}/usr/bin/godotlts-stable-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Engine Stable Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-bin32(){
	pkgdesc="${pkgdesclts} LTS Stable Binary Version 32b"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-standard"
		"godot-standard32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.32" "${pkgdir}/opt/godot/godotlts-stable-bin32"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-bin32" "${pkgdir}/usr/bin/godotlts-stable-bin32"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-bin32.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Engine Stable Binary v${pkgver} 32b
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Binary Version 32b"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-bin32 %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-export-templates-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Export Templates Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-export-templates"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_export_templates.tpz" "${pkgdir}/opt/godot/godotlts-stable-export-templates-bin.tpz"
}

package_libgodotlts-stable-bin(){
	pkgdesc="${pkgdesclts} LTS Stable LibGodot Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-lib"
	)
	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodotlts-stable-bin.aar"
}

package_godotlts-stable-web-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Web Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-web"
	)
	unzip "Godot_v${pkgver}-stable_web_editor.zip" -d "${srcdir}/godotlts-stable-web-bin.d"
	install -d "${pkgdir}/opt/godot/"
	cp -r "${srcdir}/godotlts-stable-web-bin.d" "${pkgdir}/opt/godot/"
}

package_godotlts-stable-headless-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Headless Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-headless"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_headless.64" "${pkgdir}/opt/godot/godotlts-stable-headless-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-headless-bin" "${pkgdir}/usr/bin/godotlts-stable-headless-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-headless-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Headless Engine Stable Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Headless Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-headless-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-server-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Server Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-server"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_server.64" "${pkgdir}/opt/godot/godotlts-stable-server-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-server-bin" "${pkgdir}/usr/bin/godotlts-stable-server-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-server-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Server Engine Stable Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Server Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-server-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-osx-bin(){
	pkgdesc="${pkgdesclts} LTS Stable MacOSX Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-osx"
		"godot-osx-universal"
	)
	install -Dm755 "${srcdir}/Godot.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godotlts-stable-osx-bin"
}

package_godotlts-stable-win32-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Windows Binary Version 32b"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-win"
		"godot-win32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32.exe" "${pkgdir}/opt/godot/godotlts-stable-win32-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32_console.cmd" "${pkgdir}/opt/godot/godotlts-stable-win32-bin.cmd"
}

package_godotlts-stable-win64-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Windows Binary Version 64b"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-win"
		"godot-win64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64.exe" "${pkgdir}/opt/godot/godotlts-stable-win64-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64_console.cmd" "${pkgdir}/opt/godot/godotlts-stable-win64-bin.cmd"
}

package_godotlts-stable-android-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Android Binary Version"
	groups+=(
		"godot-lts"
		"godot-gdscript"
		"godot-android"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_android_editor.apk" "${pkgdir}/opt/godot/godotlts-stable-android-bin.apk"
}

##############
# Godot Mono #
##############
package_godotlts-stable-mono-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Mono Binary Version"
	depends+=("${_monodepends}")
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-standard"
		"godot-standard64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/Godot_v${pkgver}-stable_mono_x11.64" "${pkgdir}/opt/godot/godotlts-stable-mono-bin.d/godotlts-stable-mono-bin"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/GodotSharp" "${pkgdir}/opt/godot/godotlts-stable-mono-bin.d/GodotSharp"
	ln -s "/opt/godot/godotlts-stable-mono-bin.d/godotlts-stable-mono-bin" "${pkgdir}/opt/godot/godotlts-stable-mono-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-mono-bin.d/godotlts-stable-mono-bin" "${pkgdir}/usr/bin/godotlts-stable-mono-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-mono-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Engine Stable Mono Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Mono Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-mono-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-mono-bin32(){
	pkgdesc="${pkgdesclts} LTS Stable Mono Binary Version 32b"
	depends+=("${_monodepends}")
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-standard"
		"godot-standard32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/Godot_v${pkgver}-stable_mono_x11.32" "${pkgdir}/opt/godot/godotlts-stable-mono-bin32.d/godotlts-stable-mono-bin32"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/GodotSharp" "${pkgdir}/opt/godot/godotlts-stable-mono-bin32.d/GodotSharp"
	ln -s "/opt/godot/godotlts-stable-mono-bin32.d/godotlts-stable-mono-bin32" "${pkgdir}/opt/godot/godotlts-stable-mono-bin32"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-mono-bin32.d/godotlts-stable-mono-bin32" "${pkgdir}/usr/bin/godotlts-stable-mono-bin32"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-mono-bin32.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Engine Stable Mono Binary v${pkgver} 32b
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Mono Binary Version 32b"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-mono-bin32 %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-mono-export-templates-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Export Templates Mono Binary Version"
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-export-templates"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_export_templates.tpz" "${pkgdir}/opt/godot/godotlts-stable-mono-export-templates-bin.tpz"
}

package_libgodotlts-stable-mono-bin(){
	pkgdesc="${pkgdesclts} LTS Stable LibGodot Mono Binary Version"
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-lib"
	)
	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.mono.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodotlts-stable-mono-bin.aar"
}


package_godotlts-stable-headless-mono-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Headless Mono Binary Version"
	depends+=("${_monodepends}")
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-headless"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/Godot_v${pkgver}-stable_mono_linux_headless.64" "${pkgdir}/opt/godot/godotlts-stable-headless-mono-bin.d/godotlts-stable-headless-mono-bin"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/GodotSharp" "${pkgdir}/opt/godot/godotlts-stable-headless-mono-bin.d/GodotSharp"
	ln -s "/opt/godot/godotlts-stable-headless-mono-bin.d/godotlts-stable-headless-mono-bin" "${pkgdir}/opt/godot/godotlts-stable-headless-mono-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-headless-mono-bin.d/godotlts-stable-headless-mono-bin" "${pkgdir}/usr/bin/godotlts-stable-headless-mono-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-headless-mono-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Headless Engine Stable Mono Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Headless Mono Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-headless-mono-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-server-mono-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Server Mono Binary Version"
	depends+=("${_monodepends}")
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-server"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/Godot_v${pkgver}-stable_mono_linux_server.64" "${pkgdir}/opt/godot/godotlts-stable-server-mono-bin.d/godotlts-stable-server-mono-bin"
	install -d "${pkgdir}/opt/godot/godotlts-stable-server-mono-bin.d/GodotSharp"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/data_Godot_v${pkgver}-stable_mono_linux_server_64" "${pkgdir}/opt/godot/godotlts-stable-server-mono-bin.d/GodotSharp"
	ln -s "/opt/godot/godotlts-stable-server-mono-bin.d/godotlts-stable-server-mono-bin" "${pkgdir}/opt/godot/godotlts-stable-server-mono-bin"
	
	install -d "${pkgdir}/usr/bin/"
	ln -s "/opt/godot/godotlts-stable-server-mono-bin.d/godotlts-stable-server-mono-bin" "${pkgdir}/usr/bin/godotlts-stable-server-mono-bin"
	
	install -d "${pkgdir}/usr/share/applications/"
	cat > "${pkgdir}/usr/share/applications/godotlts-stable-server-mono-bin.desktop" <<-EOF
		[Desktop Entry]
		Name=Godot LTS Server Engine Stable Mono Binary v${pkgver}
		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Stable Server Mono Binary Version"
		Comment=Application for making games
		Exec=/usr/bin/godotlts-stable-server-mono-bin %U
		Icon=godot
		Terminal=false
		Type=Application
		MimeType=application/x-godot-project;
		Categories=Development;IDE;
	EOF
}

package_godotlts-stable-mono-osx-bin(){
	pkgdesc="${pkgdesclts} LTS Stable MacOSX Mono Binary Version"
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-osx"
		"godot-osx-universal"
	)
	install -Dm755 "${srcdir}/Godot_mono.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godotlts-stable-mono-osx-bin.d/godotlts-stable-mono-osx-bin"
	cp -r "${srcdir}/Godot_mono.app/Contents/Resources/GodotSharp" "${pkgdir}/opt/godot/godotlts-stable-mono-osx-bin.d/GodotSharp"
	ln -s "/opt/godot/godotlts-stable-mono-osx-bin.d/godotlts-stable-mono-osx-bin" "${pkgdir}/opt/godot/godotlts-stable-mono-osx-bin"
}

package_godotlts-stable-mono-win32-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Windows Mono Binary Version 32b"
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-win"
		"godot-win32"
		"godot-32"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32.exe" "${pkgdir}/opt/godot/godotlts-stable-mono-win32-bin.d/godotlts-stable-mono-win32-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32_console.cmd" "${pkgdir}/opt/godot/godotlts-stable-mono-win32-bin.d/godotlts-stable-mono-win32-bin.cmd"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win32/GodotSharp" "${pkgdir}/opt/godot/godotlts-stable-mono-win32-bin.d/GodotSharp"
	ln -s "/opt/godot/godotlts-stable-mono-win32-bin.d/godotlts-stable-mono-win32-bin.exe" "${pkgdir}/opt/godot/godotlts-stable-mono-win32-bin.exe"
	ln -s "/opt/godot/godotlts-stable-mono-win32-bin.d/godotlts-stable-mono-win32-bin.cmd" "${pkgdir}/opt/godot/godotlts-stable-mono-win32-bin.cmd"
}

package_godotlts-stable-mono-win64-bin(){
	pkgdesc="${pkgdesclts} LTS Stable Windows Mono Binary Version 64b"
	groups+=(
		"godot-lts"
		"godot-mono"
		"godot-win"
		"godot-win64"
		"godot-64"
	)
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64.exe" "${pkgdir}/opt/godot/godotlts-stable-mono-win64-bin.d/godotlts-stable-mono-win64-bin.exe"
	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64_console.cmd" "${pkgdir}/opt/godot/godotlts-stable-mono-win64-bin.d/godotlts-stable-mono-win64-bin.cmd"
	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win64/GodotSharp" "${pkgdir}/opt/godot/godotlts-stable-mono-win64-bin.d/GodotSharp"
	ln -s "/opt/godot/godotlts-stable-mono-win64-bin.d/godotlts-stable-mono-win64-bin.exe" "${pkgdir}/opt/godot/godotlts-stable-mono-win64-bin.exe"
	ln -s "/opt/godot/godotlts-stable-mono-win64-bin.d/godotlts-stable-mono-win64-bin.cmd" "${pkgdir}/opt/godot/godotlts-stable-mono-win64-bin.cmd"
}



# ##################
# # Godot 3 Latest #
# ##################

# pkgname+=(
# 	"godot3-latest-src"
# 	##################
# 	# Godot GDScript #
# 	##################
# 	"godot3-latest-bin"
# 	"godot3-latest-bin32"
# 	"godot3-latest-export-templates-bin"
# 	"libgodot3-latest-bin"
# 	"godot3-latest-web-bin"
# 	"godot3-latest-headless-bin"
# 	"godot3-latest-server-bin"
# 	"godot3-latest-osx-bin"
# 	"godot3-latest-win32-bin"
# 	"godot3-latest-win64-bin"
# 	"godot3-latest-android-bin"
# 	##############
# 	# Godot Mono #
# 	##############
# 	"godot3-latest-mono-bin"
# 	"godot3-latest-mono-bin32"
# 	"godot3-latest-mono-export-templates-bin"
# 	"libgodot3-latest-mono-bin"
# 	"godot3-latest-headless-mono-bin"
# 	"godot3-latest-server-mono-bin"
# 	"godot3-latest-mono-osx-bin"
# 	"godot3-latest-mono-win32-bin"
# 	"godot3-latest-mono-win64-bin"
# 	)

# pkgdesclatest="Godot 3 Latest Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."

# package_godot3-latest-src(){
# 	pkgdesc="${pkgdesclatest} Latest SourceCode"
# 	groups+=(
# 		"godot-latest"
# 		"godot-src"
# 	)
# 	install -d "${pkgdir}/opt/godot/src/godot3-latest/"
# 	cp -r "${srcdir}/godot-${pkgver}-stable/"* "${pkgdir}/opt/godot/src/godot3-latest/"
# }

# ##################
# # Godot GDScript #
# ##################

# package_godot3-latest-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-standard"
# 		"godot-standard64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.64" "${pkgdir}/opt/godot/godot3-latest-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-bin" "${pkgdir}/usr/bin/godot3-latest-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Engine Latest Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-bin32(){
# 	pkgdesc="${pkgdesclatest} Latest Binary Version 32b"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-standard"
# 		"godot-standard32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.32" "${pkgdir}/opt/godot/godot3-latest-bin32"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-bin32" "${pkgdir}/usr/bin/godot3-latest-bin32"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-bin32.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Engine Latest Binary v${pkgver} 32b
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Binary Version 32b"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-bin32 %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-export-templates-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Export Templates Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-export-templates"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_export_templates.tpz" "${pkgdir}/opt/godot/godot3-latest-export-templates-bin.tpz"
# }

# package_libgodot3-latest-bin(){
# 	pkgdesc="${pkgdesclatest} Latest LibGodot Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-lib"
# 	)
# 	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodot3-latest-bin.aar"
# }

# package_godot3-latest-web-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Web Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-web"
# 	)
# 	unzip "Godot_v${pkgver}-stable_web_editor.zip" -d "${srcdir}/godot3-latest-web-bin.d"
# 	install -d "${pkgdir}/opt/godot/"
# 	cp -r "${srcdir}/godot3-latest-web-bin.d" "${pkgdir}/opt/godot/"
# }

# package_godot3-latest-headless-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Headless Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-headless"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_headless.64" "${pkgdir}/opt/godot/godot3-latest-headless-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-headless-bin" "${pkgdir}/usr/bin/godot3-latest-headless-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-headless-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Headless Engine Latest Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Headless Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-headless-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-server-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Server Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-server"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_server.64" "${pkgdir}/opt/godot/godot3-latest-server-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-server-bin" "${pkgdir}/usr/bin/godot3-latest-server-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-server-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Server Engine Latest Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Server Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-server-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-osx-bin(){
# 	pkgdesc="${pkgdesclatest} Latest MacOSX Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-osx"
# 		"godot-osx-universal"
# 	)
# 	install -Dm755 "${srcdir}/Godot.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godot3-latest-osx-bin"
# }

# package_godot3-latest-win32-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Windows Binary Version 32b"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-win"
# 		"godot-win32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32.exe" "${pkgdir}/opt/godot/godot3-latest-win32-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32_console.cmd" "${pkgdir}/opt/godot/godot3-latest-win32-bin.cmd"
# }

# package_godot3-latest-win64-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Windows Binary Version 64b"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-win"
# 		"godot-win64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64.exe" "${pkgdir}/opt/godot/godot3-latest-win64-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64_console.cmd" "${pkgdir}/opt/godot/godot3-latest-win64-bin.cmd"
# }

# package_godot3-latest-android-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Android Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-android"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_android_editor.apk" "${pkgdir}/opt/godot/godot3-latest-android-bin.apk"
# }

# ##############
# # Godot Mono #
# ##############
# package_godot3-latest-mono-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Mono Binary Version"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-standard"
# 		"godot-standard64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/Godot_v${pkgver}-stable_mono_x11.64" "${pkgdir}/opt/godot/godot3-latest-mono-bin.d/godot3-latest-mono-bin"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/GodotSharp" "${pkgdir}/opt/godot/godot3-latest-mono-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godot3-latest-mono-bin.d/godot3-latest-mono-bin" "${pkgdir}/opt/godot/godot3-latest-mono-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-mono-bin.d/godot3-latest-mono-bin" "${pkgdir}/usr/bin/godot3-latest-mono-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-mono-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Engine Latest Mono Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Mono Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-mono-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-mono-bin32(){
# 	pkgdesc="${pkgdesclatest} Latest Mono Binary Version 32b"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-standard"
# 		"godot-standard32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/Godot_v${pkgver}-stable_mono_x11.32" "${pkgdir}/opt/godot/godot3-latest-mono-bin32.d/godot3-latest-mono-bin32"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/GodotSharp" "${pkgdir}/opt/godot/godot3-latest-mono-bin32.d/GodotSharp"
# 	ln -s "/opt/godot/godot3-latest-mono-bin32.d/godot3-latest-mono-bin32" "${pkgdir}/opt/godot/godot3-latest-mono-bin32"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-mono-bin32.d/godot3-latest-mono-bin32" "${pkgdir}/usr/bin/godot3-latest-mono-bin32"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-mono-bin32.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Engine Latest Mono Binary v${pkgver} 32b
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Mono Binary Version 32b"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-mono-bin32 %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-mono-export-templates-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Export Templates Mono Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-export-templates"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_export_templates.tpz" "${pkgdir}/opt/godot/godot3-latest-mono-export-templates-bin.tpz"
# }

# package_libgodot3-latest-mono-bin(){
# 	pkgdesc="${pkgdesclatest} Latest LibGodot Mono Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-lib"
# 	)
# 	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.mono.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodot3-latest-mono-bin.aar"
# }


# package_godot3-latest-headless-mono-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Headless Mono Binary Version"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-headless"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/Godot_v${pkgver}-stable_mono_linux_headless.64" "${pkgdir}/opt/godot/godot3-latest-headless-mono-bin.d/godot3-latest-headless-mono-bin"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/GodotSharp" "${pkgdir}/opt/godot/godot3-latest-headless-mono-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godot3-latest-headless-mono-bin.d/godot3-latest-headless-mono-bin" "${pkgdir}/opt/godot/godot3-latest-headless-mono-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-headless-mono-bin.d/godot3-latest-headless-mono-bin" "${pkgdir}/usr/bin/godot3-latest-headless-mono-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-headless-mono-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Headless Engine Latest Mono Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Headless Mono Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-headless-mono-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-server-mono-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Server Mono Binary Version"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-server"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/Godot_v${pkgver}-stable_mono_linux_server.64" "${pkgdir}/opt/godot/godot3-latest-server-mono-bin.d/godot3-latest-server-mono-bin"
# 	install -d "${pkgdir}/opt/godot/godot3-latest-server-mono-bin.d/GodotSharp"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/data_Godot_v${pkgver}-stable_mono_linux_server_64" "${pkgdir}/opt/godot/godot3-latest-server-mono-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godot3-latest-server-mono-bin.d/godot3-latest-server-mono-bin" "${pkgdir}/opt/godot/godot3-latest-server-mono-bin"

	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godot3-latest-server-mono-bin.d/godot3-latest-server-mono-bin" "${pkgdir}/usr/bin/godot3-latest-server-mono-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godot3-latest-server-mono-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot3 Server Engine Latest Mono Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. Latest Server Mono Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godot3-latest-server-mono-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godot3-latest-mono-osx-bin(){
# 	pkgdesc="${pkgdesclatest} Latest MacOSX Mono Binary Version"
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-osx"
# 		"godot-osx-universal"
# 	)
# 	install -Dm755 "${srcdir}/Godot_mono.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godot3-latest-mono-osx-bin.d/godot3-latest-mono-osx-bin"
# 	cp -r "${srcdir}/Godot_mono.app/Contents/Resources/GodotSharp" "${pkgdir}/opt/godot/godot3-latest-mono-osx-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godot3-latest-mono-osx-bin.d/godot3-latest-mono-osx-bin" "${pkgdir}/opt/godot/godot3-latest-mono-osx-bin"
# }

# package_godot3-latest-mono-win32-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Windows Mono Binary Version 32b"
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-win"
# 		"godot-win32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32.exe" "${pkgdir}/opt/godot/godot3-latest-mono-win32-bin.d/godot3-latest-mono-win32-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32_console.cmd" "${pkgdir}/opt/godot/godot3-latest-mono-win32-bin.d/godot3-latest-mono-win32-bin.cmd"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win32/GodotSharp" "${pkgdir}/opt/godot/godot3-latest-mono-win32-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godot3-latest-mono-win32-bin.d/godot3-latest-mono-win32-bin.exe" "${pkgdir}/opt/godot/godot3-latest-mono-win32-bin.exe"
# 	ln -s "/opt/godot/godot3-latest-mono-win32-bin.d/godot3-latest-mono-win32-bin.cmd" "${pkgdir}/opt/godot/godot3-latest-mono-win32-bin.cmd"
# }

# package_godot3-latest-mono-win64-bin(){
# 	pkgdesc="${pkgdesclatest} Latest Windows Mono Binary Version 64b"
# 	groups+=(
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-win"
# 		"godot-win64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64.exe" "${pkgdir}/opt/godot/godot3-latest-mono-win64-bin.d/godot3-latest-mono-win64-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64_console.cmd" "${pkgdir}/opt/godot/godot3-latest-mono-win64-bin.d/godot3-latest-mono-win64-bin.cmd"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win64/GodotSharp" "${pkgdir}/opt/godot/godot3-latest-mono-win64-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godot3-latest-mono-win64-bin.d/godot3-latest-mono-win64-bin.exe" "${pkgdir}/opt/godot/godot3-latest-mono-win64-bin.exe"
# 	ln -s "/opt/godot/godot3-latest-mono-win64-bin.d/godot3-latest-mono-win64-bin.cmd" "${pkgdir}/opt/godot/godot3-latest-mono-win64-bin.cmd"
# }


# ####################
# # Godot LTS Latest #
# ####################

# pkgname+=(
# 	"godotlts-latest-src"
# 	##################
# 	# Godot GDScript #
# 	##################
# 	"godotlts-latest-bin"
# 	"godotlts-latest-bin32"
# 	"godotlts-latest-export-templates-bin"
# 	"libgodotlts-latest-bin"
# 	"godotlts-latest-web-bin"
# 	"godotlts-latest-headless-bin"
# 	"godotlts-latest-server-bin"
# 	"godotlts-latest-osx-bin"
# 	"godotlts-latest-win32-bin"
# 	"godotlts-latest-win64-bin"
# 	"godotlts-latest-android-bin"
# 	##############
# 	# Godot Mono #
# 	##############
# 	"godotlts-latest-mono-bin"
# 	"godotlts-latest-mono-bin32"
# 	"godotlts-latest-mono-export-templates-bin"
# 	"libgodotlts-latest-mono-bin"
# 	"godotlts-latest-headless-mono-bin"
# 	"godotlts-latest-server-mono-bin"
# 	"godotlts-latest-mono-osx-bin"
# 	"godotlts-latest-mono-win32-bin"
# 	"godotlts-latest-mono-win64-bin"
# 	)

# pkgdescltslatest="Godot LTS Game Engine: An advanced, feature packed, multi-platform 2D and 3D game engine."

# package_godotlts-latest-src(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest SourceCode"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-src"
# 	)
# 	install -d "${pkgdir}/opt/godot/src/godotlts-latest/"
# 	cp -r "${srcdir}/godot-${pkgver}-stable/"* "${pkgdir}/opt/godot/src/godotlts-latest/"
# }

# ##################
# # Godot GDScript #
# ##################

# package_godotlts-latest-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-standard"
# 		"godot-standard64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.64" "${pkgdir}/opt/godot/godotlts-latest-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-bin" "${pkgdir}/usr/bin/godotlts-latest-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Engine Latest Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-bin32(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Binary Version 32b"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-standard"
# 		"godot-standard32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_x11.32" "${pkgdir}/opt/godot/godotlts-latest-bin32"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-bin32" "${pkgdir}/usr/bin/godotlts-latest-bin32"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-bin32.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Engine Latest Binary v${pkgver} 32b
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Binary Version 32b"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-bin32 %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-export-templates-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Export Templates Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-export-templates"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_export_templates.tpz" "${pkgdir}/opt/godot/godotlts-latest-export-templates-bin.tpz"
# }

# package_libgodotlts-latest-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest LibGodot Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-lib"
# 	)
# 	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodotlts-latest-bin.aar"
# }

# package_godotlts-latest-web-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Web Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-web"
# 	)
# 	unzip "Godot_v${pkgver}-stable_web_editor.zip" -d "${srcdir}/godotlts-latest-web-bin.d"
# 	install -d "${pkgdir}/opt/godot/"
# 	cp -r "${srcdir}/godotlts-latest-web-bin.d" "${pkgdir}/opt/godot/"
# }

# package_godotlts-latest-headless-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Headless Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-headless"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_headless.64" "${pkgdir}/opt/godot/godotlts-latest-headless-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-headless-bin" "${pkgdir}/usr/bin/godotlts-latest-headless-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-headless-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Headless Engine Latest Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Headless Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-headless-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-server-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Server Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-server"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_linux_server.64" "${pkgdir}/opt/godot/godotlts-latest-server-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-server-bin" "${pkgdir}/usr/bin/godotlts-latest-server-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-server-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Server Engine Latest Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Server Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-server-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-osx-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest MacOSX Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-osx"
# 		"godot-osx-universal"
# 	)
# 	install -Dm755 "${srcdir}/Godot.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godotlts-latest-osx-bin"
# }

# package_godotlts-latest-win32-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Windows Binary Version 32b"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-win"
# 		"godot-win32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32.exe" "${pkgdir}/opt/godot/godotlts-latest-win32-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win32_console.cmd" "${pkgdir}/opt/godot/godotlts-latest-win32-bin.cmd"
# }

# package_godotlts-latest-win64-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Windows Binary Version 64b"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-win"
# 		"godot-win64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64.exe" "${pkgdir}/opt/godot/godotlts-latest-win64-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_win64_console.cmd" "${pkgdir}/opt/godot/godotlts-latest-win64-bin.cmd"
# }

# package_godotlts-latest-android-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Android Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-gdscript"
# 		"godot-android"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_android_editor.apk" "${pkgdir}/opt/godot/godotlts-latest-android-bin.apk"
# }

# ##############
# # Godot Mono #
# ##############
# package_godotlts-latest-mono-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Mono Binary Version"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-standard"
# 		"godot-standard64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/Godot_v${pkgver}-stable_mono_x11.64" "${pkgdir}/opt/godot/godotlts-latest-mono-bin.d/godotlts-latest-mono-bin"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_64/GodotSharp" "${pkgdir}/opt/godot/godotlts-latest-mono-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godotlts-latest-mono-bin.d/godotlts-latest-mono-bin" "${pkgdir}/opt/godot/godotlts-latest-mono-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-mono-bin.d/godotlts-latest-mono-bin" "${pkgdir}/usr/bin/godotlts-latest-mono-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-mono-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Engine Latest Mono Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Mono Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-mono-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-mono-bin32(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Mono Binary Version 32b"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-standard"
# 		"godot-standard32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/Godot_v${pkgver}-stable_mono_x11.32" "${pkgdir}/opt/godot/godotlts-latest-mono-bin32.d/godotlts-latest-mono-bin32"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_x11_32/GodotSharp" "${pkgdir}/opt/godot/godotlts-latest-mono-bin32.d/GodotSharp"
# 	ln -s "/opt/godot/godotlts-latest-mono-bin32.d/godotlts-latest-mono-bin32" "${pkgdir}/opt/godot/godotlts-latest-mono-bin32"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-mono-bin32.d/godotlts-latest-mono-bin32" "${pkgdir}/usr/bin/godotlts-latest-mono-bin32"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-mono-bin32.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Engine Latest Mono Binary v${pkgver} 32b
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Mono Binary Version 32b"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-mono-bin32 %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-mono-export-templates-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Export Templates Mono Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-export-templates"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_export_templates.tpz" "${pkgdir}/opt/godot/godotlts-latest-mono-export-templates-bin.tpz"
# }

# package_libgodotlts-latest-mono-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest LibGodot Mono Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-lib"
# 	)
# 	install -Dm755 "${srcdir}/godot-lib.${pkgver}.stable.mono.release.aar" "${pkgdir}/opt/godot/godot-lib/libgodotlts-latest-mono-bin.aar"
# }


# package_godotlts-latest-headless-mono-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Headless Mono Binary Version"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-headless"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/Godot_v${pkgver}-stable_mono_linux_headless.64" "${pkgdir}/opt/godot/godotlts-latest-headless-mono-bin.d/godotlts-latest-headless-mono-bin"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_headless_64/GodotSharp" "${pkgdir}/opt/godot/godotlts-latest-headless-mono-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godotlts-latest-headless-mono-bin.d/godotlts-latest-headless-mono-bin" "${pkgdir}/opt/godot/godotlts-latest-headless-mono-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-headless-mono-bin.d/godotlts-latest-headless-mono-bin" "${pkgdir}/usr/bin/godotlts-latest-headless-mono-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-headless-mono-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Headless Engine Latest Mono Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Headless Mono Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-headless-mono-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-server-mono-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Server Mono Binary Version"
# 	depends+=("${_monodepends}")
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-server"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/Godot_v${pkgver}-stable_mono_linux_server.64" "${pkgdir}/opt/godot/godotlts-latest-server-mono-bin.d/godotlts-latest-server-mono-bin"
# 	install -d "${pkgdir}/opt/godot/godotlts-latest-server-mono-bin.d/GodotSharp"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_linux_server_64/data_Godot_v${pkgver}-stable_mono_linux_server_64" "${pkgdir}/opt/godot/godotlts-latest-server-mono-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godotlts-latest-server-mono-bin.d/godotlts-latest-server-mono-bin" "${pkgdir}/opt/godot/godotlts-latest-server-mono-bin"
	
# 	install -d "${pkgdir}/usr/bin/"
# 	ln -s "/opt/godot/godotlts-latest-server-mono-bin.d/godotlts-latest-server-mono-bin" "${pkgdir}/usr/bin/godotlts-latest-server-mono-bin"
	
# 	install -d "${pkgdir}/usr/share/applications/"
# 	cat > "${pkgdir}/usr/share/applications/godotlts-latest-server-mono-bin.desktop" <<-EOF
# 		[Desktop Entry]
# 		Name=Godot LTS Server Engine Latest Mono Binary v${pkgver}
# 		GenericName="Advanced cross-platform 2D and 3D libre game engine. LTS Latest Server Mono Binary Version"
# 		Comment=Application for making games
# 		Exec=/usr/bin/godotlts-latest-server-mono-bin %U
# 		Icon=godot
# 		Terminal=false
# 		Type=Application
# 		MimeType=application/x-godot-project;
# 		Categories=Development;IDE;
# 	EOF
# }

# package_godotlts-latest-mono-osx-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest MacOSX Mono Binary Version"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-osx"
# 		"godot-osx-universal"
# 	)
# 	install -Dm755 "${srcdir}/Godot_mono.app/Contents/MacOS/Godot" "${pkgdir}/opt/godot/godotlts-latest-mono-osx-bin.d/godotlts-latest-mono-osx-bin"
# 	cp -r "${srcdir}/Godot_mono.app/Contents/Resources/GodotSharp" "${pkgdir}/opt/godot/godotlts-latest-mono-osx-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godotlts-latest-mono-osx-bin.d/godotlts-latest-mono-osx-bin" "${pkgdir}/opt/godot/godotlts-latest-mono-osx-bin"
# }

# package_godotlts-latest-mono-win32-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Windows Mono Binary Version 32b"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-win"
# 		"godot-win32"
# 		"godot-32"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32.exe" "${pkgdir}/opt/godot/godotlts-latest-win32-bin.d/godotlts-latest-win32-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win32/Godot_v${pkgver}-stable_mono_win32_console.cmd" "${pkgdir}/opt/godot/godotlts-latest-win32-bin.d/godotlts-latest-win32-bin.cmd"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win32/GodotSharp" "${pkgdir}/opt/godot/godotlts-latest-win32-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godotlts-latest-win32-bin.d/godotlts-latest-mono-win32-bin.exe" "${pkgdir}/opt/godot/godotlts-latest-mono-win32-bin.exe"
# 	ln -s "/opt/godot/godotlts-latest-win32-bin.d/godotlts-latest-mono-win32-bin.cmd" "${pkgdir}/opt/godot/godotlts-latest-mono-win32-bin.cmd"
# }

# package_godotlts-latest-mono-win64-bin(){
# 	pkgdesc="${pkgdescltslatest} LTS Latest Windows Mono Binary Version 64b"
# 	groups+=(
# 		"godot-lts"
# 		"godot-latest"
# 		"godot-mono"
# 		"godot-win"
# 		"godot-win64"
# 		"godot-64"
# 	)
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64.exe" "${pkgdir}/opt/godot/godotlts-latest-win64-bin.d/godotlts-latest-win64-bin.exe"
# 	install -Dm755 "${srcdir}/Godot_v${pkgver}-stable_mono_win64/Godot_v${pkgver}-stable_mono_win64_console.cmd" "${pkgdir}/opt/godot/godotlts-latest-win64-bin.d/godotlts-latest-win64-bin.cmd"
# 	cp -r "${srcdir}/Godot_v${pkgver}-stable_mono_win64/GodotSharp" "${pkgdir}/opt/godot/godotlts-latest-win64-bin.d/GodotSharp"
# 	ln -s "/opt/godot/godotlts-latest-win64-bin.d/godotlts-latest-mono-win64-bin.exe" "${pkgdir}/opt/godot/godotlts-latest-mono-win64-bin.exe"
# 	ln -s "/opt/godot/godotlts-latest-win64-bin.d/godotlts-latest-mono-win64-bin.cmd" "${pkgdir}/opt/godot/godotlts-latest-mono-win64-bin.cmd"
# }
